'use strict';
const path = require('path');

module.exports = appInfo => {
    const config = exports = {};

    config.store = {
        loginName: 'color,wanhu1',
        hospitalId: 'cd0127a43b574848b331ec48a70dffe6',
    }
    config.eureka = {
        eurekaUrl: "http://10.1.10.21:48010/eureka/apps",//测试环境地址
        // eurekaUrl: 'http://10.1.10.22:38010/eureka/apps',//开发环境地址
        clientOnly: true
    }

    config.logger = {
        consoleLevel: 'DEBUG',
    };

    config.insurance = {
        path: '/work_data/groupInsurance'
    }

    config.cors = {
        origin: '*',
        allowMethods: 'GET,PUT,POST,DELETE'
    };

    config.security = {
        domainWhiteList:[],
    };

    config.auth = {
      client: {
        authorizationUri: "https://login-test.wanhuhealth.com/oauth/authorize",
        logoutUri: "https://login-test.wanhuhealth.com/login/out"
        // authorizationUri: "https://login-dev.wanhuhealth.com/oauth/authorize",
        // logoutUri: "https://login-dev.wanhuhealth.com/login/out"
      }
    }

    config.view = {
      client: {
        devServer: 'http://localhost:3003/'
      }
    }

    config.call = {
      clientId: '4464705427921133484',
      clientSecret: 'HjGxaqZyDxiHtTUShLqQ6cE8QKKJaYyJwO4wXcz0NleqXXwDaMOtnLH2xunWPCsu',
      clientInstanceId: '3b163569-1e4e-4fb6-8c66-1795fa35fe18',
    }

    config.oss = {
      accessKeyId: 'LTAInSAwbhihBy7Q',
      accessKeySecret: 'lllJvYVJrrconcTLKs7SoadeStj886',
      bucket: 'wanhu-test',
      region: 'oss-cn-beijing',
    };

    return config;
};
